// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


function fading_toggle (element_id, named_element, on_string, off_string) {
  el = $(element_id);
  if(el.style.display == 'none'){
    Effect.Appear(element_id);
    Element.update(named_element, on_string)
  } else {
    Effect.Fade(element_id);
    Element.update(named_element, off_string)
  }
}
